package com.imooc.news_manager_project.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.imooc.news_manager_project.entity.Hu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HuMapper extends BaseMapper<Hu> {

    //        @Select("select * from t_hu ${ew.customSqlSegment}")
    //    List<Hu> selectAll(@Param(Constants.WRAPPER) Wrapper<Hu> wrapper);
    List<Hu> selectAll(@Param(Constants.WRAPPER) Wrapper<Hu> wrapper);

    IPage<Hu> selectHuPage(Page<Hu> page, @Param(Constants.WRAPPER) Wrapper<Hu> wrapper);

}
